﻿package com.thorqq.magictimer.download;

public class ThreadInfo
{
    private int taskid;
    private int threadId;// 下载器id
    private int startPos;// 开始点
    private int endPos;// 结束点
    private int compeleteSize;// 完成度

    public ThreadInfo(int taskid, int threadId, int startPos, int endPos, int compeleteSize)
    {
        super();
        this.taskid = taskid;
        this.threadId = threadId;
        this.startPos = startPos;
        this.endPos = endPos;
        this.compeleteSize = compeleteSize;
    }

    public int getThreadId()
    {
        return threadId;
    }

    public void setThreadId(int threadId)
    {
        this.threadId = threadId;
    }

    public int getStartPos()
    {
        return startPos;
    }

    public void setStartPos(int startPos)
    {
        this.startPos = startPos;
    }

    public int getEndPos()
    {
        return endPos;
    }

    public void setEndPos(int endPos)
    {
        this.endPos = endPos;
    }

    public int getCompeleteSize()
    {
        return compeleteSize;
    }

    public void setCompeleteSize(int compeleteSize)
    {
        this.compeleteSize = compeleteSize;
    }

    public int getTaskid()
    {
        return taskid;
    }

    public void setTaskid(int taskid)
    {
        this.taskid = taskid;
    }

    @Override
    public String toString()
    {
        return "DownloadInfo [taskid" + taskid + ", threadId=" + threadId + ", startPos=" + startPos + ", endPos="
                + endPos + ", compeleteSize=" + compeleteSize + "]";
    }

}
